import request from '../utils/request.js'
export const getComment = function (type, source, offset) {
  return request.get('/v1_0/comments', {
    params: {
      type,
      source,
      offset
    }
  })
}
export const upCommentLike = id => {
  return request.post('/v1_0/comment/likings', { target: id })
}
export const cannelCommentLike = id => {
  return request.delete('/v1_0/comment/likings/:cmt_id')
}

export const pubComment = (id, content) => {
  return request.post('/v1_0/comments', { target: id, content })
}
